cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
cmake_policy(SET CMP0054 NEW)

set(PROJECT_VERSION 0.2.0)
project(sv2gimbalkeyboardcontrol VERSION ${PROJECT_VERSION} LANGUAGES CXX)

add_definitions(-DAPI_EXPORTS)
set(CMAKE_BUILD_TYPE "Release")

find_package(SpireMS REQUIRED)
# 查找 ncurses 库
find_package(Curses REQUIRED)


include_directories(${SpireMS_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})


# Public header
set(HEADS
    sv2_gimbal_keyboard.h
)


set(SRCS
    sv2_gimbal_keyboard.cpp
)


add_executable(SV2GimbalKeyboardControlDemo SV2GimbalKeyboardControlDemo.cpp  ${SRCS})
target_link_libraries(SV2GimbalKeyboardControlDemo ${CURSES_LIBRARIES} ${SpireMS_LIBS})
